package com.gkzf.ai.module.crm.job;

import com.alibaba.fastjson.JSON;
import com.gkzf.ai.framework.websocket.core.sender.local.LocalWebSocketMessageSender;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Huawei
 * @date 2025-04-16 18:22
 */
@Component
public class ScheduledTasks {

    @Resource
    private LocalWebSocketMessageSender localWebSocketMessageSender;



    public void demo() {
        Map<String,String> resultMap = new HashMap<>();
        resultMap.put("update","1");
        resultMap.put("isSubmit","1");
        localWebSocketMessageSender.send(2,149L,"creditReport", JSON.toJSONString(resultMap));
    }

}
